<?php

class Mageex_ExportPdf_Block_Adminhtml_ExportPdf_Print extends Mage_Adminhtml_Block_Widget
{
   public function getActionUrl()
   {
		return
			$this->getUrl('*/*/print', array('id' => $this->getRequest()->getParam('id')));
   }
   public function getType()
   {
		return $this->getRequest()->getParam('type');
   }
   public function getDefaultUrl()
   {
		$data = $this->getRequest()->getPost();
		$path = 'admin/sales_order_'.$data['type'].'/print';
				$arguments = array($data['type'].'_id'=>$data['id']);
				$url = $this->getUrl('adminhtml/sales_order_'.$data['type'].'/print', array(
					$data['type'].'_id' => $data['id'],
				));
   }
   public function getId()
   {
		return $this->getRequest()->getParam('id');
   }
   public function getListTemplate()
   {
		$data = $this->getRequest()->getParams();
		return Mage::getModel('exportpdf/exportpdf')->getListByType($data['type']);
   }
}
